#include "schedule.h"
#include <iostream>
#include <fstream> 

TaskSchedule::TaskSchedule(istream& is) {	
	int n;
	string str1[10];
	int arr11[10];
	int arr12[10];
	
	is >> n;
	//num = n;
	setNum(n);
	for (int i = 0; i < n; i++) {
		is >> str1[i] >> arr11[i] >> arr12[i];
	} 
	
	for (int i = 0; i < n; i++) {
		setName(str1, i);
		setStart(arr11, i);
		setEnd(arr12, i);
	}	
} 

void TaskSchedule::dump() {
	int n;
	n = getNum();
	for (int i = 0; i < n; i++) {
		cout << name[i] << "    " << start[i] << " ---> " << end[i] << endl;
	}	
}

bool TaskSchedule::check() {
	
}









